package com.onlinebooking;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
public class CustomerDao {
	
	@PersistenceContext(unitName = "onlinebookingPU")
	private EntityManager em;		

	public Customer createCustomer(Customer customer) {
		em.persist(customer);
		return customer;
	}	

}
